﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ARR.Entities;
using System.Linq.Expressions;
using ARR.Entities.Gateways;

namespace ARR.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ICountryService" in both code and config file together.
    [ServiceContract]
    public interface ICountryService
    {
        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        List<Country> GetAll();

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        Country GetById(int countryID);

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        void SaveCountries(List<Country> countries);

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        List<Currency> GetAllCurrencies();

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        List<CurrencyExchangeRate> GetCurrencyExchangeRates(int countryId);

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        void SaveCurrencyExchangeRates(List<CurrencyExchangeRate> rates);
    }
}
